import Vue from 'vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import App from './App.vue'
import router from './route/index.js'
import store  from './vuex/store.js'
import Axios from 'axios'
import CommonUtil from './util/commonUtil.js'


//公用方法
Vue.prototype.commonUtil=CommonUtil

// 炫酷的粒子动效
import  VueParticles  from   'vue-particles'

//Axios.defaults.headers.post['Content-Type'] = 'application/json';


// 全局路由守卫
import './route/permission.js'


Vue.use(VueParticles)
Vue.use(ElementUI)

new Vue({
  el: '#app',
  render: h => h(App),
  router,
  store
})
